import java.awt.event.*;
/**
 * Beschreiben Sie hier die Klasse MouseMotion.
 * 
 * @author (Ihr Name) 
 * @version (eine Versionsnummer oder ein Datum)
 */
public class MouseMotion implements MouseMotionListener , MouseListener
{
    Board myBoard;
    MouseMotion(Board b){
        myBoard = b;
    }
    public void mouseMoved(MouseEvent e) {
        myBoard.mouseEvent(e.getX(), e.getY(), false);
    }

    public void mouseDragged(MouseEvent e) {
        
    }
    public void mousePressed(MouseEvent e) {
        myBoard.mouseEvent(e.getX(), e.getY(), true);
    }

    public void mouseReleased(MouseEvent e) {
        myBoard.mouseEvent(e.getX(), e.getY(), false);
    }

    public void mouseEntered(MouseEvent e) {
    }

    public void mouseExited(MouseEvent e) {
    }

    public void mouseClicked(MouseEvent e) {
    }
}
